import { NgModule } from '@angular/core'
import { Route, RouterModule } from '@angular/router'

const routes: Route[] = [
  { path: '', redirectTo: 'bank', pathMatch: 'full' },
  { path: 'hero', loadChildren: 'app/hero/hero.module#HeroModule' },
  { path: 'bank', loadChildren: 'app/bank/bank.module#BankModule' },
  { path: 'todos', loadChildren: 'app/todos/todos.module#TodosModule' },
  { path: 'guide', loadChildren: 'app/guide/guide.module#GuideModule' },
]

@NgModule({
  imports: [ RouterModule.forRoot(routes, { useHash: true }) ],
  exports: [ RouterModule ],
})
export class AppRoutingModule {
}
